package com.ebt.m.customer.entity;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * 主险
 * Created by archer.qi on 2016/12/9.
 */
public class RiskBean implements Serializable {

    /* 保险ID */
    private String id;

    /* 保险名称 */
    private String name;

    /* 保险简称 */
    private String shortName;

    /* 保险代码 */
    private String code;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getRiskName() {
        if (!TextUtils.isEmpty(shortName)) {
            return shortName;
        }
        if (!TextUtils.isEmpty(name)) {
            return name;
        }
        return "";
    }
}
